package com.user.mapper;

import com.common.entity.sys.Dict;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: 温洁宇
 * @date: 2021/08/11/19:02
 * Other:
 */
@Mapper
public interface DictMapper {


    /**
     * 找到所有
     *
     * @param dict dict
     * @return {@link List<Dict>}
     */
    List<Dict> findAll(Dict dict);


    List<Dict> findOne(int parentId);

    void addChildren(Dict dict);

    Dict findOneById(int id);

    boolean delOne(int id);
}
